import Vue from 'vue';
import Router from 'vue-router';
import info from "@/components/info"
import index from "@/components/index"

Vue.use(Router)
// 
export default function createRouter() {
   return new Router({
    mode:'history',
    routes:[
      {path:'/',component:index},
      {path:'/info',component:info},
    ]
   })
}